<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>后台管理</title>
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/admini/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/admini/css/admin.css" />
	</head>

	<body>
		<div class="main-layout" id='main-layout'>
			<!--侧边栏-->
			<div class="main-layout-side">
				<div class="m-logo">
				</div>
				<ul class="layui-nav layui-nav-tree" lay-filter="leftNav">
					{foreach name="menu" item="vo"} 
					<li class="layui-nav-item">
						
						<a href="javascript:;" data-id='{$vo.id}' data-text="学生管理"><i class="iconfont">{$vo.icon}</i>{$vo.name}</a>
						{foreach name="vo['children']" item="v"}
						<dl class="layui-nav-child">
							<dd>
								<a href="javascript:;" data-url="{:url($v.title)}" data-id='{$v.id}' data-text="{$v.name}"><span class="l-line"></span>{$v.name}</a>
							</dd>
						</dl>
					    {/foreach}
					</li>
					{/foreach}
					
				</ul>
			</div>
			<!--右侧内容-->
			<div class="main-layout-container">
				<!--头部-->
				<div class="main-layout-header">
					<div class="menu-btn" id="hideBtn">
						<a href="javascript:;">
							<span class="iconfont">&#xe60e;</span>
						</a>
					</div>
					<ul class="layui-nav" lay-filter="rightNav">
						<li class="layui-nav-item">
							<a href="javascript:;" data-url="{:url('index/baoming')}" data-id='4' data-text="报名">报名</a>
						</li>
						<li class="layui-nav-item">
							<a href="javascript:;" data-url="{:url('index/system')}" data-id='5' data-text="{$admini.title}">{$admini.title}</a>
						</li>
						<li class="layui-nav-item">
							<a href="javascript:;" onclick="tuichu()">退出</a>
						</li>
					</ul>
				</div>
				<!--主体内容-->
				<div class="main-layout-body">
					<!--tab 切换-->
					<div class="layui-tab layui-tab-brief main-layout-tab" lay-filter="tab" lay-allowClose="true">
						<ul class="layui-tab-title">
							<li class="layui-this welcome">后台主页</li>
						</ul>
						<div class="layui-tab-content">
							<div class="layui-tab-item layui-show" style="background: #f5f5f5;">
								<!--1-->
								<iframe src="{:url('index/welcome')}" width="100%" height="100%" name="iframe" scrolling="auto" class="iframe" framborder="0"></iframe>
								<!--1end-->
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--遮罩-->
			<div class="main-mask">

			</div>
		</div>
		<script type="text/javascript">
			var scope = {
				link: '/admini/index/welcome.html'
			}
		</script>
		<script src="__PUBLIC__/admini/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="__PUBLIC__/admini/js/common.js" type="text/javascript" charset="utf-8"></script>
		<script src="__PUBLIC__/admini/js/main.js" type="text/javascript" charset="utf-8"></script>
		<script src="__PUBLIC__/admini/js/jquery.min.js"  type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			function tuichu() {
				$.ajax({               
					type:   "POST",
		               url:   "/admini/login/tuichu",
		               data: {},
		               success:   function(data) {
						if(data.code == 1) {
							setTimeout(function() {
								location.href = data.url;
							}, 1000);
							layer.msg(data.message);
						}
					}         
				});  
			}
		</script>
	</body>

</html>